home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / DEMON / RISCOS2 / TCP_131S.ARC / h / cmdparse < prev    next >
Text File  |  1994-01-02  |  589b  |  18 lines

  1. #include "Terminal.h"
  2.  
  3. #define NARG            10      /* Max number of args to commands */
  4.  
  5. struct cmds {
  6.         char *name;             /* Name of command */
  7.         int (*func)();          /* Function to execute command */
  8.         int  argcmin;           /* Minimum number of args */
  9.         char *argc_errmsg;      /* Message to print if insufficient args */
  10.         char *exec_errmsg;      /* Message to print if function fails */
  11. };
  12. #ifndef NULLCHAR
  13. #define NULLCHAR        (char *)0
  14. #endif
  15.  
  16. int cmdparse(struct cmds *, char *, Terminal *);
  17. int subcmd(struct cmds *, int, char **);
  18.